﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework.Constraints;
using NUnit.Framework;
using NHibernate;
using NHibernate.Cfg;
using NHibernate.Tool.hbm2ddl;
using SAKS.ViewModels;
using SAKS.Models;
using SAKS.Services;
using SAKS.IServices;

namespace SAKS.UnitTest.ServicesTest
{
    class ReportServicesTest : TestBase
    {
        IReportServices ReportServices { get; set; }

        public ReportServicesTest ()
        {
            ReportServices = new ReportServices();
        }
        
        [Test]
        public void NewReportServicesTest() 
        {
            using (var session = sessionFactory.OpenSession())
            {
                ReportServices.Session = session;
                var file = ReportServices.GetFile(Guid.NewGuid());
                Assert.IsNull(file);
            }
        }
    }
}
